package com.example.Activity.mapper;

import com.example.Activity.domain.Activity;
import com.example.Activity.domain.Vo.ActivityListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface ActivityMapper {
    List<ActivityListVo> selectActivity(Activity activity);

    void insertActivity(Activity activity);

    void updateActivityById(Activity activity);

    void delActivityById(@Param("id") String id);

    ActivityListVo selectActivityById(@Param("id") Integer id);

    List<Activity> getOtherActivities(Integer userId);

    List<Activity> getActivitiesByUserId(Integer userId);
}
